<? 

session_start(); 

include("misc.php");  

?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
  <title>Untitled Document</title>
  <link href="css/css.css" rel="stylesheet" type="text/css" />
  <script src="js/jquery.js" type="text/javascript"></script>
  <script src="http://maps.googleapis.com/maps/api/js?sensor=true" type="text/javascript"></script>
  <script src="js/google_suggest.js" type="text/javascript"></script>
  <script>

	<? 
	
	echo("logged_in = false;");
	if (isset($_SESSION['userid'])) {
    echo("logged_in = true;");
	}
		
	?>
  </script>
  <script src="js/index.js" type="text/javascript"></script>
  
  
</head>
<body class="nomargin">

<? load_parts(); ?>

<table id="maintable"  width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td></td>
    <td width="900">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="30%" valign="bottom"><a href="index.php"><img src="images/logo.png" width="200" height="60" border="0"></a></td>
          <td width="70%" valign="top" id="login_container"><? load_top_info(); ?></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="2" cellpadding="3">
      
        <tr id="header_row">
          <td id="main_header" width="600" align="right">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="45%">&nbsp;</td>
                <td width="36%">&nbsp;</td>
                <td width="19%"><div align="right" class="header"><span id="main_header_text" style="cursor:pointer; display:none" ><nobr>Deals Nearby <span class="header2">(23)</span></nobr></span></div></td>
              </tr>
            </table>

            
          </td>
          <td id="friendfeed_header"  width="300" align="right">          
             <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="45%">&nbsp;</td>
                <td width="36%">&nbsp;</td>
                <td width="19%"> <div align="right" class="header"><span id="friendfeed_header_text"><nobr>Friend Freed</nobr></span></div></td>
              </tr>
            </table>        
           
          </td>
        </tr>
      </table>
    </td>

    <td></td>
  </tr>
  <tr>
    <td valign="top">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>
            <table width="100%" height="545" border="0" cellpadding="0" cellspacing="0" bgcolor="#FAFAFA">
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table>
          </td>
          <td width="3"></td>
        </tr>
      </table>
    </td>
    <td id="center" width="900" valign="top">

      <table width="100%" height="544" border="0" cellspacing="0" cellpadding="0" >
        <tr id="main_container_row">
          <td width="600" class="container" id="main_container">&nbsp;</td>
          <td width="5"   valign="middle"   id="main_container_space"></td>
          <td width="300" class="container" id="friendfeed_container">&nbsp;</td>
        </tr>
        <tr>
          <td width="600" height="4"><img src="images/vspacer-3.png"></td>
          <td width="5"><img src="images/hspacer-3.png"></td>
          <td width="300" height="4"></td>
        </tr>
        <tr>
          <td class="container" id="postbox_container" height="140"><? load_pobox() ?></td>
          <td width="5" valign="top"><img src="images/hspacer-3.png"></td>
          <td class="container" id="searchbox_container"><? load_searchbox() ?></td>
        </tr>
      </table>


    </td>
    <td valign="top">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="3"></td>
          <td>
            <table width="100%" height="545" border="0" cellpadding="0" cellspacing="0" bgcolor="#FAFAFA">
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td></td>
    <td width="900"><? load_footer(); ?> </td>
    <td></td>
  </tr>
</table>
<script>

<?  if (isset($_SESSION['userid'])) {
    echo "pobox_ext_menu_visibility_row_show();" ;
    echo "show_friend_feed();";
	}	else {
	echo "hide_friend_feed();";
	}
 	
?>
//pobox_show_error_box();

preload([<?   list_images()  ?>]);
preload([<?   list_images2()  ?>]);

//$("#main_container").html("<img src='misc/grid.png' />");
</script>
</body>
</html>

